const router = {
  routes: [
    {
      path: '/',
      component: resolve => require(['@/views/LoginView.vue'], resolve)
    },
    {
      path: '/home',
      component: resolve => require(['@/components/Home.vue'], resolve),
      redirect: '/report',
      children: [
        {
          path: '/report',
          component: resolve => require(['@/views/ReportView.vue'], resolve)
        },
        {
          path: '/role',
          component: resolve => require(['@/views/RoleView.vue'], resolve)
        },
        {
          path: '/member',
          component: resolve => require(['@/views/MemberView.vue'], resolve)
        },
        {
          path: '/item',
          component: resolve => require(['@/views/ItemView.vue'], resolve)
        },
        {
          path: '/order',
          component: resolve => require(['@/views/OrderView.vue'], resolve)
        }
      ]
    }
  ]
}

export default router
